From: Florian Müllner Date: Wed, 6 Mar 2019 20:39:42 +0000 (+0100) Subject: texture-cache: Apply resource scale to the right dimension X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~871^2^2~37^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9729a2e77213030fd73e4885de2eede6a22e3608;p=gnome-shell.git texture-cache: Apply resource scale to the right dimension Size matters! https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/444 --- diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index 61f76accc..cbe3afaba 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -502,7 +502,7 @@ pixbuf_to_st_content_image (GdkPixbuf *pixbuf, width *= paint_scale; if (height < 0) - height = ceilf (gdk_pixbuf_get_width (pixbuf) / resource_scale); + height = ceilf (gdk_pixbuf_get_height (pixbuf) / resource_scale); else height *= paint_scale;